﻿using Remotion.Utilities;
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Linq;
using System.Reflection;
using System.Text;
using System.Threading.Tasks;

namespace Utils
{
    /// <summary>
    /// 关键字枚举类
    /// </summary>
    public static class ManageEnums
    {
        /// <summary>
        /// 选项栏
        /// </summary>
        public enum BOOK_OPTION {
            /// <summary>
            /// 图书管理
            /// </summary>
            [Description("图书管理")]
            MANAGENENT= 1,

            /// <summary>
            /// 借还记录
            /// </summary>
            [Description("借还记录")]
            BORROWRETURN = 2,

            /// <summary>
            /// 读者管理
            /// </summary>
            [Description("读者管理")]
            READER_MANAGENENT = 3,

            /// <summary>
            /// 读者管理
            /// </summary>
            [Description("图书借还")]
            RETURNMANAGENENT = 4,
        }

        /// <summary>
        /// 读者信息
        /// </summary>
        public enum READER
        {
            /// <summary>
            /// 读者编号
            /// </summary>
            [Description("读者编号")]
            READER_ID = 1,

            /// <summary>
            /// 读者姓名
            /// </summary>
            [Description("读者姓名")]
            READER_NAME = 2,

            /// <summary>
            /// 非空
            /// </summary>
            [Description("不能为空")]
            READER_NOTNULL = 3,
        }

        /// <summary>
        /// 借还
        /// </summary>
        public enum BORROW
        {
            /// <summary>
            /// 借书成功
            /// </summary>
            [Description("借书成功")]
            SUCCEED = 1,

            /// <summary>
            /// 借书失败
            /// </summary>
            [Description("借书失败")]
            DEFEATED = 2,
      

            /// <summary>
            /// 还书成功
            /// </summary>
            [Description("还书成功")]
            RETURN_SUCCEED = 3,

            /// <summary>
            /// 还书失败
            /// </summary>
            [Description("还书失败")]
            RETURN_DEFEATED = 4,

            /// <summary>
            /// 该书已被借出
            /// </summary>
            [Description("该书已被借出")]
            LEND = 5,

            /// <summary>
            /// 该书已存在
            /// </summary>
            [Description("该图书编号已存在")]
            EXIST = 6,
        }

        /// <summary>
        /// 添加修改
        /// </summary>
        public enum DOCUMENT
        {
            /// <summary>
            /// 添加成功
            /// </summary>
            [Description("添加成功")]
            Add_SUCCEED = 1,

            /// <summary>
            /// 添加失败
            /// </summary>
            [Description("添加失败")]
            Add_LOSE = 2,

            /// <summary>
            /// 修改成功
            /// </summary>
            [Description("修改成功")]
            Update_SUCCEED = 3,

            /// <summary>
            /// 修改失败
            /// </summary>
            [Description("修改失败")]
            Update_LOSE = 4,

            /// <summary>
            /// 非空
            /// </summary>
            [Description("不能为空")]
            READER_NOTNULL = 5,

            /// <summary>
            /// 删除成功
            /// </summary>
            [Description("删除成功")]
            Datate_SUCCEED = 6,

            /// <summary>
            /// 删除失败
            /// </summary>
            [Description("删除失败")]
            Datate_LOSE = 74,
        }
    }
}
